<template>
    <div>
        <!-- 全局组件 不需要引用 可以 直接使用 -->
        <TypeNav />
        <ListContainer />
        <Recommend />
        <Rank />
        <Like />
        <Floor v-for="floor in floorList" :key="floor.id" :floor="floor" :cname="'floor-swiper'+floor.id"/>
        <Brand />
    </div>
</template>

<script>
// import TypeNav from "./TypeNav"
import ListContainer from "./ListContainer"
import Recommend from "./Recommend"
import Rank from "./Rank"
import Like from "./Like"
import Floor from "./Floor"
import Brand from "./Brand"
import { mapActions, mapState } from 'vuex'
export default {
    name: "Home",
    components: {
        // TypeNav,
        ListContainer,
        Recommend,
        Rank,
        Like,
        Floor,
        Brand
    },
    computed: {
        ...mapState("home", ["floorList"])
    },
    methods: {
        ...mapActions("home", ["getFloorListData"])
    },
    mounted() {
        this.getFloorListData()
    }
}
</script>

<style lang="scss" scoped>

</style>